<template>
  <div>
    <div>
      <table style="width: 100%" border="1" cellspacing="1">
        <tbody>
          <tr>
            <td :rowspan="dataform.fSheet2bList.length+19">基本信息</td> <!-- rowspan代表单元格纵向合并 -->
            <td colspan="2">体校名称</td>
            <!-- colspan代表单元格横向合并 -->
            <td colspan="6"><input type="text" v-model="dataform.orgName" /></td>
          </tr>
          <tr>
            <td colspan="2">成立时间(年份)</td>
            <td colspan="2"><input type="text" v-model="dataform.upTime" /></td>
            <td colspan="2">法定代表人(负责人)</td>
            <td colspan="3"><input type="text" v-model="dataform.legalPerson" /></td>

          </tr>
          <tr>
            <td colspan="2">网站地址(选填)</td>
            <td colspan="2"><input type="text" v-model="dataform.intAddress" /></td>
            <td colspan="2">固定电话</td>
            <td colspan="3"><input type="text" v-model="dataform.staticPhone" /></td>

          </tr>
          <tr>
            <td colspan="2">通讯地址</td>
            <td colspan="2"><input type="text" v-model="dataform.phoneAddress" /></td>
            <td colspan="2">手机</td>
            <td colspan="3"><input type="text" v-model="dataform.phone" /></td>

          </tr>
          <tr>
            <td colspan="2">邮编</td>
            <td colspan="2"><input type="text" v-model="dataform.postcode" /></td>
            <td colspan="2">电子邮箱</td>
            <td colspan="3"><input type="text" v-model="dataform.email" /></td>

          </tr>
          <tr>
            <td colspan="2" rowspan="6">类别(请在相应学校类别后填写学校具体在读人数)</td>
            <td colspan="2"></td>
            <td colspan="1">小学</td>
            <td colspan="1">初中</td>
            <td colspan="1">中专</td>
            <td colspan="1">高中</td>
          </tr>
          <tr>
            <td colspan="2">体育运动学校</td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[0].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[1].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[2].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[3].studentNum" /></td>
          </tr>
          <tr>
            <td colspan="2">竞技体校</td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[4].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[5].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[6].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[7].studentNum" /></td>
          </tr>
          <tr>
            <td colspan="2">少儿体校(业余体校)</td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[8].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[9].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[10].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[11].studentNum" /></td>
          </tr>
          <tr>
            <td colspan="2">单项体校</td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[12].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[13].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[14].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[15].studentNum" /></td>
          </tr>
          <tr>
            <td colspan="2">体育中学</td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[16].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[17].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[18].studentNum" /></td>
            <td><input type="text" v-model="dataform.fSheet2aOrgTypeDataList[19].studentNum" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="3">类别(请在相应的选项后划"√")</td>
            <td colspan="3">省级</td>
            <td colspan="3"><input type="text" v-model="typelist.provincial" /></td>
          </tr>
          <tr>
            <td colspan="3">地市级</td>
            <td colspan="3"><input type="text" v-model="typelist.municipal" /></td>
          </tr>
          <tr>
            <td colspan="3">县级</td>
            <td colspan="3"><input type="text" v-model="typelist.county" /></td>
          </tr>
          <tr>
            <td colspan="2" :rowspan="dataform.fSheet2bList.length+2">所获级别命名授予时间(年份)</td>
            <td colspan="2" :rowspan="dataform.fSheet2bList.length">国家高水平人才基地</td>
            <td colspan="2">总局青少司授予</td>
            <td colspan="2"><input type="text" v-model="dataform.fSheet2bList[0].getTime" /></td>
          </tr>
          <tr>
            <td colspan="2" :rowspan="dataform.fSheet2bList.length">总局项目中心授予</td>
            <td colspan="1">项目</td>
            <td colspan="1">时间</td>
          </tr>
          <tr v-for="(item, index) in dataform.fSheet2bList.slice(1, -1)" :key="index">
            <td colspan="1">
              <input type="text" v-model="item.sportName"
                @contextmenu.prevent="showProjectContextMenu($event, index + 1)" />
            </td>
            <td colspan="1">
              <input type="text" v-model="item.getTime"
                @contextmenu.prevent="showProjectContextMenu($event, index + 1)" />
            </td>
          </tr>
          <tr>
            <td colspan="4" rowspan="2">省级高水平人才基地</td>
          </tr>
          <tr>
            <td colspan="4"><input type="text"
                v-model="dataform.fSheet2bList[dataform.fSheet2bList.length-1].getTime" /></td>
          </tr>

          <tr>
            <td colspan="2" rowspan="3">其他</td>
            <td colspan="3">伙食补助(元/人/日)</td>
            <td colspan="3"><input type="text" v-model="dataform.fSheet2cList[0].content" /></td>
          </tr>
          <tr>
            <td colspan="3">服装补助(元/人/年)</td>
            <td colspan="3"><input type="text" v-model="dataform.fSheet2cList[1].content" /></td>
          </tr>
          <tr>
            <td colspan="3">文化课时(学时/周)</td>
            <td colspan="3"><input type="text" v-model="dataform.fSheet2cList[2].content" /></td>
          </tr>

          <tr>
            <td :rowspan="dataform.fSheet2dList.length/2+16">训练管理</td> <!-- rowspan代表单元格纵向合并 -->
            <td colspan="2" rowspan="2">办学模式("√")</td>
            <td colspan="2">一集中</td>
            <td colspan="2">二集中</td>
            <td colspan="2">三集中</td>
          </tr>
          <tr>
            <td colspan="2"><input type="text" v-model="ConcentratedType.oneConcentrated" /></td>
            <td colspan="2"><input type="text" v-model="ConcentratedType.twoConcentrated" /></td>
            <td colspan="2"><input type="text" v-model="ConcentratedType.threeConcentrated" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">体校自办项目(名称)
              <span style="color: #666; font-size: 12px; cursor: help;" title="右键点击输入框可以新增或删除行">
                ⓘ
              </span>
            </td>
            <td colspan="2">在训人数</td>
            <td colspan="2" rowspan="2">体校依托办项目</td>
            <td colspan="2">在训人数</td>
          </tr>
          <tr>
            <td colspan="1">男</td>
            <td colspan="1">女</td>
            <td colspan="1">男</td>
            <td colspan="1">女</td>
          </tr>
          <tr v-for="(item, index) in dataform.fSheet2dList" :key="index" v-if="index % 2 === 0">
            <!-- 自办 -->
            <td colspan="2">
              <input type="text" v-model="dataform.fSheet2dList[index].sportName"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
            <td colspan="1">
              <input type="text" v-model="dataform.fSheet2dList[index].manNum"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
            <td colspan="1">
              <input type="text" v-model="dataform.fSheet2dList[index].womanNum"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
            <!-- 依托 -->
            <td colspan="2">
              <input type="text" v-model="dataform.fSheet2dList[index + 1].sportName"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
            <td colspan="1">
              <input type="text" v-model="dataform.fSheet2dList[index + 1].manNum"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
            <td colspan="1">
              <input type="text" v-model="dataform.fSheet2dList[index + 1].womanNum"
                @contextmenu.prevent="showContextMenu($event, index)" />
            </td>
          </tr>
          <tr>
            <td colspan="1" rowspan="12">教练员数量</td>
            <td colspan="1" rowspan="6">在编</td>
            <td colspan="2" rowspan="2">年龄</td>
            <td colspan="1">30岁以下</td>
            <td colspan="1">30岁-40岁</td>
            <td colspan="1">41岁-50岁</td>
            <td colspan="1">50岁以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeThirtyDownOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeThirtyToFortyOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeFortyOneToFiftyOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeFiftyOn" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">学历</td>
            <td colspan="1">本科以下</td>
            <td colspan="2">本科</td>
            <td colspan="1">本科以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.coachBenDownOn" /></td>
            <td colspan="2"><input type="text" v-model="dataform.coachBenOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachBenUpOn" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">级别</td>
            <td colspan="1">初级</td>
            <td colspan="1">中级</td>
            <td colspan="1">高级</td>
            <td colspan="1">国家级级</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelOneOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelTwoOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelThreeOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelFourOn" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="6">外聘</td>
            <td colspan="2" rowspan="2">年龄</td>
            <td colspan="1">30岁以下</td>
            <td colspan="1">30岁-40岁</td>
            <td colspan="1">41岁-50岁</td>
            <td colspan="1">50岁以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeThirtyDownOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeThirtyToFortyOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeFortyOneToFiftyOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachAgeFiftyOut" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">学历</td>
            <td colspan="1">本科以下</td>
            <td colspan="2">本科</td>
            <td colspan="1">本科以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.coachBenDownOut" /></td>
            <td colspan="2"><input type="text" v-model="dataform.coachBenOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachBenUpOut" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">级别</td>
            <td colspan="1">初级</td>
            <td colspan="1">中级</td>
            <td colspan="1">高级</td>
            <td colspan="1">国家级级</td>
          </tr>
          <tr>

            <td colspan="1"><input type="text" v-model="dataform.coachLevelOneOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelTwoOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelThreeOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.coachLevelFourOut" /></td>
          </tr>

          <tr>
            <td colspan="1" rowspan="18">文化教育</td>
            <td colspan="2" rowspan="2">是否承担文化教育（划“√”）</td>
            <td colspan="4">是</td>
            <td colspan="2"><input type="text" v-model="CulturalEducation.undertake" /></td>
          </tr>
          <tr>
            <td colspan="4">否 (如此选项，可跳过“文化教育”部分)</td>
            <td colspan="2"><input type="text" v-model="CulturalEducation.noDertake" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">文化教育负责部门（划“√”）</td>
            <td colspan="2">体育部门</td>
            <td colspan="2">教育部门</td>
            <td colspan="1">体校合办</td>
            <td colspan="1">其他</td>
          </tr>
          <tr>
            <td colspan="2"><input type="text" v-model="ResponsibleDepartmen.PhysicalEducation1" /></td>
            <td colspan="2"><input type="text" v-model="ResponsibleDepartmen.education" /></td>
            <td colspan="1"><input type="text" v-model="ResponsibleDepartmen.Kinesiology" /></td>
            <td colspan="1"><input type="text" v-model="ResponsibleDepartmen.other" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">文化教师隶属部门（划“√”）</td>
            <td colspan="3">体育部门</td>
            <td colspan="3">教育部门</td>
          </tr>
          <tr>
            <td colspan="3"><input type="text" v-model="SubordinateDepartment.PhysicalEducation" /></td>
            <td colspan="3"><input type="text" v-model="SubordinateDepartment.education" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="12">文化教师数量</td>
            <td colspan="1" rowspan="6">在编</td>
            <td colspan="2" rowspan="2">年龄</td>
            <td colspan="1">30岁以下</td>
            <td colspan="1">30岁-40岁</td>
            <td colspan="1">41岁-50岁</td>
            <td colspan="1">50岁以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeThirtyDownOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeThirtyToFortyOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeFortyOneToFiftyOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeFiftyOn" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">学历</td>
            <td colspan="1">本科以下</td>
            <td colspan="2">本科</td>
            <td colspan="1">本科以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureBenDownOn" /></td>
            <td colspan="2"><input type="text" v-model="dataform.cultureBenOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureBenUpOn" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">级别</td>
            <td colspan="1">中(小)学三级</td>
            <td colspan="1">中(小)学二级</td>
            <td colspan="1">中(小)学一级</td>
            <td colspan="1">高级</td>
            <td colspan="1">特级</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelOneOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelTwoOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelThreeOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelFourOn" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelFiveOn" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="6">外聘</td>
            <td colspan="2" rowspan="2">年龄</td>
            <td colspan="1">30岁以下</td>
            <td colspan="1">30岁-40岁</td>
            <td colspan="1">41岁-50岁</td>
            <td colspan="1">50岁以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeThirtyDownOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeThirtyToFortyOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeFortyOneToFiftyOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureAgeFiftyOut" /></td>
          </tr>
          <tr>
            <td colspan="2" rowspan="2">学历</td>
            <td colspan="1">本科以下</td>
            <td colspan="2">本科</td>
            <td colspan="1">本科以上</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureBenDownOut" /></td>
            <td colspan="2"><input type="text" v-model="dataform.cultureBenOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureBenUpOut" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">级别</td>
            <td colspan="1">中(小)学三级</td>
            <td colspan="1">中(小)学二级</td>
            <td colspan="1">中(小)学一级</td>
            <td colspan="1">高级</td>
            <td colspan="1">特级</td>
          </tr>
          <tr>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelOneOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelTwoOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelThreeOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelFourOut" /></td>
            <td colspan="1"><input type="text" v-model="dataform.cultureLevelFiveOut" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="10">学生走向</td>
            <td colspan="3">走向种类</td>
            <td colspan="2">以往年度累计人数</td>
            <td colspan="3">上一年度人数</td>
          </tr>
          <tr>
            <td colspan="1" rowspan="3">体育系统输送</td>
            <td colspan="2">省队(一线)</td>
            <td colspan="2"><input type="text" v-model="dataform.oneLineAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.oneLineUpNum" /></td>
          </tr>
          <tr>
            <td colspan="2">省校(二线)</td>
            <td colspan="2"><input type="text" v-model="dataform.twoLineAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.twoLineUpNum" /></td>
          </tr>
          <tr>
            <td colspan="2">上一级体校(三线)</td>
            <td colspan="2"><input type="text" v-model="dataform.threeLineAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.threeLineUpNum" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="3">教育系统输送</td>
            <td colspan="2">体育院校</td>
            <td colspan="2"><input type="text" v-model="dataform.sportSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.sportSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="2">普通校</td>
            <td colspan="2"><input type="text" v-model="dataform.commonSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.commonSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="2">高校高水平运动队</td>
            <td colspan="2"><input type="text" v-model="dataform.highSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.highSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="3">部队体工队</td>
            <td colspan="2"><input type="text" v-model="dataform.troopSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.troopSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="3">就业</td>
            <td colspan="2"><input type="text" v-model="dataform.jobSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.jobSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="3">其他</td>
            <td colspan="2"><input type="text" v-model="dataform.otherSchoolAllNum" /></td>
            <td colspan="3"><input type="text" v-model="dataform.otherSchoolUpNum" /></td>
          </tr>
          <tr>
            <td colspan="1">备注</td>
            <td colspan="8"><input type="text" v-model="dataform.memo" /></td>
          </tr>
          <tr>
            <td colspan="1" rowspan="2">单位简介</td>
            <td colspan="8" style="height: 60px;"><input type="text" v-model="dataform.info" /></td>
          </tr>
        </tbody>
      </table>
      <div style="display: flex; justify-content: space-between;">
        <div>填表人：<input type="text" v-model="dataform.writePeople" /></div>
        <div>联系电话：<input type="text" v-model="dataform.writePhone" /></div>
      </div>
      <div style="display: flex; justify-content: space-between;">
        <div>填报时间：<input type="text" v-model="dataform.writeTime" /></div>
        <div>填报单位：<input type="text" v-model="dataform.orgName" /></div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      Alldata: {
        type: Object,
        default: {}
      },
    },
    data() {
      return {
        dataform: {
          orgName: '',
          upTime: '',
          legalPerson: '',
          intAddress: '',
          staticPhone: '',
          phoneAddress: '',
          phone: '',
          postcode: '',
          email: '',
          pattern: '',
          sheetType: '',
          orgType: '',
          levelType: '',
          cultureJudge: '',
          cultureOrg: '',
          cultureTeacher: '',
          memo: '',
          info: '',
          writePeople: '',
          writeTime: '',
          writePhone: '',
          fSheet2aOrgTypeDataList: [{
              orgTypeId: 1,
              studentNum: ''
            },
            {
              orgTypeId: 2,
              studentNum: ''
            },
            {
              orgTypeId: 3,
              studentNum: ''
            },
            {
              orgTypeId: 4,
              studentNum: ''
            },
            {
              orgTypeId: 5,
              studentNum: ''
            },
            {
              orgTypeId: 6,
              studentNum: ''
            },
            {
              orgTypeId: 7,
              studentNum: ''
            },
            {
              orgTypeId: 8,
              studentNum: ''
            },
            {
              orgTypeId: 9,
              studentNum: ''
            },
            {
              orgTypeId: 10,
              studentNum: ''
            },
            {
              orgTypeId: 11,
              studentNum: ''
            },
            {
              orgTypeId: 12,
              studentNum: ''
            },
            {
              orgTypeId: 13,
              studentNum: ''
            },
            {
              orgTypeId: 14,
              studentNum: ''
            },
            {
              orgTypeId: 15,
              studentNum: ''
            },
            {
              orgTypeId: 16,
              studentNum: ''
            },
            {
              orgTypeId: 17,
              studentNum: ''
            },
            {
              orgTypeId: 18,
              studentNum: ''
            },
            {
              orgTypeId: 19,
              studentNum: ''
            },
            {
              orgTypeId: 20,
              studentNum: ''
            }
          ],

          fSheet2bList: [{
              levelTimeId: 1,
              getTime: ''
            },
            {
              levelTimeId: 2,
              sportName: '',
              getTime: ''
            },
            {
              levelTimeId: 3,
              getTime: ''
            }
          ],
          fSheet2cList: [{
              otherId: 1,
              content: ''
            },
            {
              otherId: 2,
              content: ''
            },
            {
              otherId: 3,
              content: ''
            }
          ],
          fSheet2dList: [{
              schoolSportTypeId: 1,
              sportName: '',
              manNum: '',
              womanNum: ''
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: '',
              womanNum: ''
            },
            {
              schoolSportTypeId: 1,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 1,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 1,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 1,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 1,
              sportName: '',
              manNum: "",
              womanNum: ""
            },
            {
              schoolSportTypeId: 2,
              sportName: '',
              manNum: "",
              womanNum: ""
            }
          ],
          coachAgeThirtyDownOn: "",
          coachAgeThirtyToFortyOn: "",
          coachAgeFortyOneToFiftyOn: "",
          coachAgeFiftyOn: "",
          coachBenUpOn: "",
          coachBenOn: "",
          coachBenDownOn: "",
          coachLevelOneOn: "",
          coachLevelTwoOn: "",
          coachLevelThreeOn: "",
          coachLevelFourOn: "",
          coachAgeThirtyDownOut: "",
          coachAgeThirtyToFortyOut: "",
          coachAgeFortyOneToFiftyOut: "",
          coachAgeFiftyOut: "",
          coachBenUpOut: "",
          coachBenOut: "",
          coachBenDownOut: "",
          coachLevelOneOut: "",
          coachLevelTwoOut: "",
          coachLevelThreeOut: "",
          coachLevelFourOut: "",

          cultureAgeThirtyDownOn: "",
          cultureAgeThirtyToFortyOn: "",
          cultureAgeFortyOneToFiftyOn: "",
          cultureAgeFiftyOn: "",
          cultureBenUpOn: "",
          cultureBenOn: "",
          cultureBenDownOn: "",
          cultureLevelOneOn: "",
          cultureLevelTwoOn: "",
          cultureLevelThreeOn: "",
          cultureLevelFourOn: "",
          cultureLevelFiveOn: "",
          cultureAgeThirtyDownOut: "",
          cultureAgeThirtyToFortyOut: "",
          cultureAgeFortyOneToFiftyOut: "",
          cultureAgeFiftyOut: "",
          cultureBenUpOut: "",
          cultureBenOut: "",
          cultureBenDownOut: "",
          cultureLevelOneOut: "",
          cultureLevelTwoOut: "",
          cultureLevelThreeOut: "",
          cultureLevelFourOut: "",
          cultureLevelFiveOut: "",

          oneLineAllNum: "",
          oneLineUpNum: "",
          twoLineAllNum: "",
          twoLineUpNum: "",
          threeLineAllNum: "",
          threeLineUpNum: "",
          sportSchoolAllNum: "",
          sportSchoolUpNum: "",
          commonSchoolAllNum: "",
          commonSchoolUpNum: "",
          highSchoolAllNum: "",
          highSchoolUpNum: "",
          troopSchoolAllNum: "",
          troopSchoolUpNum: "",
          jobSchoolAllNum: "",
          jobSchoolUpNum: "",
          otherSchoolAllNum: "",
          otherSchoolUpNum: ""
        },


        //省1,市2,县3  数字
        typelist: {
          provincial: "",
          municipal: "",
          county: ""
        },

        //办学模式 一集中 1 ，二集中 2 ， 三集中 3
        ConcentratedType: {
          oneConcentrated: "",
          twoConcentrated: "",
          threeConcentrated: ""
        },





        //文化教育 是否承担文化教育 cultureJudge  1承担， 2不承担  （数字）
        CulturalEducation: {
          undertake: "",
          noDertake: "",
        },
        //文化教育 文化教育负责部门    cultureOrg  1体育部门  2教育部门 ，3体教部门 ，4,其他
        ResponsibleDepartmen: {
          PhysicalEducation: "",
          education: "",
          Kinesiology: "",
          other: "",
        },
        //文化教育 文化教师隶属部门     cultureTeacher      1，体育部门  2教育部门
        SubordinateDepartment: {
          PhysicalEducation: "",
          education: "",

        }


      };
    },

    //更新数据
    watch: {
      Alldata(newValue, oldValue) {

        this.dataform = newValue
        console.log(this.dataform, "555");
        if (this.dataform.levelType == 1) {
          this.typelist.provincial = "√"

        } else if (this.dataform.levelType == 2) {

          this.typelist.municipal = "√"
        } else if (this.dataform.levelType == 3) {

          this.typelist.provincial = "√"
        }

        if (this.dataform.pattern == "1") {
          this.ConcentratedType.oneConcentrated = "√"
        } else if (this.dataform.pattern == "2") {
          this.ConcentratedType.twoConcentrated = "√"

        } else if (this.dataform.pattern == "3") {

          this.ConcentratedType.threeConcentrated = "√"
        }


        //文化教育 是否承担文化教育 cultureJudge  1承担， 2不承担
        if (this.dataform.cultureJudge == 1) {

          this.CulturalEducation.undertake = "√"
        } else if (this.dataform.cultureJudge == 2) {

          this.CulturalEducation.noDertake = "√"
        }

        //文化教育 文化教师隶属部门     cultureTeacher      1，体育部门  2教育部门
        if (this.dataform.cultureTeacher == "1") {

          this.SubordinateDepartment.PhysicalEducation = "√"
        } else if (this.dataform.cultureTeacher == "2") {

          this.SubordinateDepartment.education = "√"
        }
        //文化教育 文化教育负责部门    cultureOrg  1体育部门  2教育部门 ，3体教部门 ，1,其他
        if (this.dataform.cultureOrg == "1") {

          this.ResponsibleDepartmen.PhysicalEducation = "√"
        } else if (this.dataform.cultureOrg == "2") {

          this.ResponsibleDepartmen.education = "√"
        } else if (this.dataform.cultureOrg == "3") {

          this.ResponsibleDepartmen.Kinesiology = "√"
        } else if (this.dataform.cultureOrg == "4") {

          this.ResponsibleDepartmen.other = "√"
        }

      },
      ConcentratedType(newValue, oldValue) {
        console.log("监听");
        this.ConcentratedType = newValue
      },
      dataform(newValue, oldValue) {

        this.dataform = newValue


      },

    },

    methods: {
      submit() {

        console.log(this.dataform);



      },


      // submit() {

      //   if (this.InsuranceType.PublicResponsibility) {
      //     this.dataform.insuranceType = 1
      //   }
      //   if (this.InsuranceType.accidentally) {
      //     this.dataform.insuranceType = 2
      //   }
      //   if (this.InsuranceType.other) {
      //     this.dataform.insuranceType = 3
      //   }
      //   // console.log(qs.stringify(this.dataform));
      //   insert_update(this.dataform).then(res => {
      //
      //   })
      // }
    }
  };
</script>

<style>
  table {
    border-collapse: collapse;
    /* //合并为一个单一的边框 */
    border-color: #a2a7ab;
    /* //边框颜色按实际自定义即可 */
    margin-bottom: 10px;
    color: #000;
  }

  thead tr th {
    background-color: #f8f8f9;
    /* //设置表格标题背景色 */
    padding: 3px;
    text-align: center;
  }

  tbody tr td {
    padding: 3px;
    text-align: center;
    height: 34px;

    /* //设置单元格最小高度 */

  }

  tbody tr td input {
    width: 99%;
    height: 95%;
    text-align: center;
    border: none;
  }

  input {
    border-bottom: 1px solid #000;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    outline: none;
    background: transparent;
    outline: medium;
  }

  *:focus {
    outline: none;
    background-color: transparent;
  }

  ::selection {
    background: transparent;
  }

  ::-moz-selection {
    background: transparent;
  }
</style>
